package com.mspbots.cw.amqp.model;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Company is com.mspbots.cw.amqp.model
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2020/2/7
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table("tenant_companies")
public class Company implements Serializable {
    @Id
    private Long id;
    private Integer tenantId;
    private Integer cwId;
    private String name;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
    private LocalDateTime syncTime;
    private JsonNode extend;

}
